package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 用户验证信息
 */
public class UserVerification extends DataObject {

    private long userId;

    /**
     * systemId,验证信息
     */
    private Map<Integer, UserVerificationItem> verificationItemMap = new ConcurrentHashMap<>();

    private long resetTime;

    public UserVerification() {

    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public Map<Integer, UserVerificationItem> getVerificationItemMap() {
        return verificationItemMap;
    }

    public void setVerificationItemMap(Map<Integer, UserVerificationItem> verificationItemMap) {
        if (verificationItemMap == null) {
            return;
        }
        this.verificationItemMap = verificationItemMap;
        setUpdateOption();
    }

    public long getResetTime() {
        return resetTime;
    }

    public void setResetTime(long resetTime) {
        if (this.resetTime != resetTime) {
            this.resetTime = resetTime;
            setUpdateOption();
        }
    }
}
